package com.xiyounet.login.controller;

import com.xiyounet.login.service.LoginService;
import com.xiyounet.login.vo.RegisterParam;
import com.xiyounet.login.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {
    @Autowired
    private LoginService loginService;
    @PostMapping("/register")
    public Result doRegister(@RequestBody RegisterParam registerParam){

        return loginService.doRegister(registerParam);
    }
}
